package com.lb.jwitter;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.ForeignKey;

@Entity
@Table (name="tbl_QLDTTXA_LichThi_Temp")
public class Tbl_QLDTTXA_LichThi_Temp implements Serializable {
   private static final long serialVersionUID = -1989579066723007050L;

   private Long id;
   private String ghiChu;
   private Date ngayThi;
   private Integer thoiGian;
   private Tbl_QLDTTXA_DM_Nhom nhomId = null;
   private Tbl_QLDTTXA_LopMonHoc lopId = null;
   private Tbl_QLDTTXA_DM_PhongThi phongId = null;
   private Tbl_QLDTTXA_DM_TietHoc tietThiId = null;
   private Tbl_TaiKhoan nguoiTao = null;

   @Id
   @GeneratedValue
   public Long getId() {
	    return id;
   }
   public void setId(Long id) {
	    this.id= id;
   }

   public String getGhiChu() {
   	return ghiChu;
   }
   public void setGhiChu(String ghiChu) {
   	this.ghiChu= ghiChu;
   }

   public Date getNgayThi() {
   	return ngayThi;
   }
   public void setNgayThi(Date ngayThi) {
   	this.ngayThi= ngayThi;
   }

   public Integer getThoiGian() {
   	return thoiGian;
   }
   public void setThoiGian(Integer thoiGian) {
   	this.thoiGian= thoiGian;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="nhomId")
   @ForeignKey(name="FK_tbl_QLDTTXA_DM_Nhom_tbl_QLDTTXA_LichThi_Temp")
   public Tbl_QLDTTXA_DM_Nhom getNhomId() {
	    return nhomId;
   }
   public void setNhomId(Tbl_QLDTTXA_DM_Nhom nhomId) {
	    this.nhomId=nhomId;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="lopId")
   @ForeignKey(name="FK_tbl_QLDTTXA_LopMonHoc_tbl_QLDTTXA_LichThi_Temp")
   public Tbl_QLDTTXA_LopMonHoc getLopId() {
	    return lopId;
   }
   public void setLopId(Tbl_QLDTTXA_LopMonHoc lopId) {
	    this.lopId=lopId;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="phongId")
   @ForeignKey(name="FK_tbl_QLDTTXA_DM_PhongThi_tbl_QLDTTXA_LichThi_Temp")
   public Tbl_QLDTTXA_DM_PhongThi getPhongId() {
	    return phongId;
   }
   public void setPhongId(Tbl_QLDTTXA_DM_PhongThi phongId) {
	    this.phongId=phongId;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="tietThiId")
   @ForeignKey(name="FK_tbl_QLDTTXA_DM_TietHoc_tbl_QLDTTXA_LichThi_Temp")
   public Tbl_QLDTTXA_DM_TietHoc getTietThiId() {
	    return tietThiId;
   }
   public void setTietThiId(Tbl_QLDTTXA_DM_TietHoc tietThiId) {
	    this.tietThiId=tietThiId;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="nguoiTao")
   @ForeignKey(name="FK_tbl_TaiKhoan_tbl_QLDTTXA_LichThi_Temp")
   public Tbl_TaiKhoan getNguoiTao() {
	    return nguoiTao;
   }
   public void setNguoiTao(Tbl_TaiKhoan nguoiTao) {
	    this.nguoiTao=nguoiTao;
   }
}//endClass 

